Skip to content

docs(readme): fix non-existent @/ path alias in theming code example#191

Open
andrerfneves wants to merge 1 commit into
mainfrom
maintenance/fix-readme-path-alias-20260617
Open

docs(readme): fix non-existent @/ path alias in theming code example#191
andrerfneves wants to merge 1 commit into
mainfrom
maintenance/fix-readme-path-alias-20260617

Conversation

@andrerfneves

Copy link
Copy Markdown
Owner

Summary

Fixes the README Theming section's code example which referenced a non-existent @ path alias.

Why

The README showed:

import { ThemeProvider } from '@/components/theme-provider'

But the project does not configure an @ path alias in vite.config.js — no resolve.alias is set. The actual codebase uses relative imports everywhere, e.g. ./components/theme-provider.

A user copying the example verbatim would encounter import errors. The code example also contradicts the actual import style used throughout the project.

Changes

  • README.md: Changed import { ThemeProvider } from '@/components/theme-provider' to import { ThemeProvider } from './components/theme-provider'

Test Plan

  • No behavior change — documentation-only fix
  • All 52 existing tests pass
  • Markdown rendering verified

The README Theming section showed `import { ThemeProvider } from '@/components/theme-provider'`
but the project does not configure a `@` path alias in vite.config.js. The actual codebase
uses relative imports (`./components/theme-provider`).

A user copying the example would encounter import errors. This fixes the example to use
the correct relative import path that matches the project's actual usage.
@vercel

vercel Bot commented Jun 17, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
lightning-decoder Ready Ready Preview, Comment Jun 17, 2026 8:06pm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant